package us.fourdesign.zptjob.DataHolder;

import org.json.JSONException;
import org.json.JSONObject;

public class ProviderInfo {
	private String id;
	private String name;
	private String phone;
	private String mobile;
	private String icon;
	private LocationInfo location;
	
	public ProviderInfo(JSONObject json) {
		try {
			id = json.getString("id");
			name = json.getString("name");
			phone = json.getString("phone");
			mobile = json.getString("mobile");
			icon = json.getString("icon");
			location = null;
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public String getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public String getPhone() {
		return phone;
	}
	public String getMobile() {
		return mobile;
	}
	public String getIcon() {
		return icon;
	}

	public LocationInfo getLocation() {
		return location;
	}
}
